package com.greenline.push.service.core.utils;

import org.apache.log4j.Logger;

/**
 * 可在此定义各种常量，比如error code和error message。
 * 
 * @author zhangdp
 * 
 */
public class Constants {

    // Error Code
    public static final int ERR_INTERNAL = 800;

    // Error Message
    public static final String ERR_INTERNAL_MSG = "internal error";
    // params of separator
    public static final String PARAMS_SEPARATOR = ",";
    public static final String APP_KEY = HostUtil.getAppUnikey();
    public static final String GLOBAL_MAP_CONTENT_KEY = "content";
    // system logger
    public static final Logger LOG_PROCESS = Logger.getLogger("processhandler");// epay-push-process.log
    public static final Logger LOG_DUBBO = Logger.getLogger("dubbocalled");// epay-push-called.log
    public static final Logger LOG_SCHEDULE = Logger.getLogger("scheduleTasklog");// epay-push-schedule.log
    public static final Logger LOG_TONGJI = Logger.getLogger("statisticshandler");// epay-push-statistics.log
    public static final Logger LOG_CACHE = Logger.getLogger("cache");// epay-push-cache.log
    // domain push symbol
    public static final String PUSH_DOMAIN = "all";
    // fail code
    public static final String INTERFACE_FAIL = "调用第三方接口发送失败";
    public static final String RETRY_OVERLOAD = "重试次数超过上限";
    public static final String PACKET_DATA_ERROR = "数据结构异常或调用接口返回false(比如:apns如果返回false,不会在重新尝试发送)或其他原因不需要重新尝试发送直接判定失败";
    // apns channel split title & content
    public static final String APNS_CONTEXT_SPLIT = "\\n";

}
